import request from "./request";

export async function postMessage(msgInfo){
    return await request.post('/api/message',msgInfo)
}

export async function getMessage(page=1,limit=10){
    return await request.get('/api/message',{
        query:{
            page,
            limit
        }
    });
}